 <?php
 $uid = $_COOKIE["USER_ID_ADMIN_LIBRARY"];
 $interface = mysql_query("SELECT * FROM interface");
$interface_get= mysql_fetch_array( $interface );
$libraryname= $interface_get['name']; 

echo "<title>$libraryname- $pagename</title>";
 
 
$user = mysql_query("SELECT * FROM users WHERE id = $uid");
$fuser = mysql_fetch_array($user);
$ulevel = $fuser["Priv"];

?>
<script type="text/javascript">
function goBack()
  {
  window.history.back()
  }
</script>

Welcome <? echo $fuser['fname']?> <br>
Options:
<form action="/olms/logout.php"><input type="submit" value="Logout" action="/olms/logout.php"/></form><input type="button" value="Back to Previous Page" onclick="goBack()"/>
<center>
<h1> <h1> <img src="images/logo.png" HEIGHT="100" ></h1> 

<h3>MESSAGE FROM ADMINISTRATOR: <?php
$sql = $sql = mysql_query("select * from notices");
echo '<table border="1">';
while ($row = mysql_fetch_array($sql)){
$messid = $row['id'];
$mess = $row['notice'];
$display = $row['show'];
echo "<tr>";
echo "<td>$mess</td>";
}
echo "</table>";
?>

</table>
</h3>
</center>
<br />